package fr.epri.user;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="USERS")
public class Users implements java.io.Serializable {

    @Column(name="USER_ID", nullable=false)
    @Id
    private int userId;
    @Column(name="USERNAME", nullable=false)
    private String username;
    @Column(name="PASSWORD", nullable=false)
    private String password;

    public Users() {
    }

    public Users(int userId, String username, Date createdDate) {
        this.userId = userId;
        this.username = username;
    }

    public int getUserId() {
        return this.userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
